<?php

/**
 * Created by hbbzy.me.
 * project: frame
 * User: hbbzy
 * Date: 2018/2/17
 * Time: 19:49
 */

namespace app\common\lib;
 final class ViewHelper
{
    private $_css,$_js,$_mate,$_img;

    public function __construct()
    {
        $this->_css = config('view.css');
        $this->_js = config('view.js');
        $this->_mate = config('view.mate');
        $this->_img = config('view.img');
    }

    public function addCss($item){
        array_merge($this->_css,$item);
    }

    public function addJs($item){
        array_merge($this->_js,$item);
    }

    public function addImage($item){
        array_merge($this->_img,$item);
    }

    public function addMate($item){
        array_merge($this->_mate,$item);
    }

    public function addItems(array $itmes){

    }

    public function getCss(){
        return $this->_css;
    }

    public function getJs(){
        return $this->_js;
    }

    public function getImage(){
        return $this->_img;
    }

    public function getCopyRight(){

    }

    public function getMate(){
        return $this->_mate;
    }

}